package com.restkeeper.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.restkeeper.dto.DyUsersDto;
import com.restkeeper.entity.DyUsers;
import com.restkeeper.service.DyUsersService;
import com.restkeeper.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/dyUsers")
public class DyUsersController {

    @Autowired
    private DyUsersService dyUsersService;


    /**
     * 添加用户
     */
    @PostMapping("/login")
    public Result login(@RequestBody DyUsersDto dyUsers) {
        return dyUsersService.login(dyUsers);
    }


}